<script setup lang="ts"></script>

<template>
  <div id="userLayout">
    <a-layout style="height: 100vh">
      <a-layout-header class="header">
        <a-space>
          <img src="../assets/logo.png" class="logo" />
          <div>AI答题应用平台</div>
        </a-space>
      </a-layout-header>
      <a-layout-content class="content">
        <router-view />
      </a-layout-content>
      <a-layout-footer class="footer">
        <a href="https://gitee.com/wwkh" target="_blank">
          gitee主页 by wangkehua
        </a>
      </a-layout-footer>
    </a-layout>
  </div>
</template>

<style scoped>
#userLayout .content {
  margin-bottom: 16px;
  padding: 20px;
  background: linear-gradient(to right, #fefefe, #fff);
}
#userLayout .header {
  margin-top: 16px;
  font-size: 21px;
}
.footer {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 16px;
  text-align: center;
}
.footer a {
  text-decoration: none;
}
#userLayout {
  text-align: center;
  background: url("https://gw.alipayobjects.com/zos/rmsportal/FfdJeJRQWjEeGTpqgBKj.png")
    0 0 / 100% 100%;
}
#userLayout .logo {
  width: 48px;
  height: 48px;
}
</style>
